{extend name="../public/header" /}
{block name="body"}
<link rel="stylesheet" href="/static/admin/css/other.css" type="text/css">
<!-- 引入 js -->
<script src="/static/iceEditor/iceEditor.js"></script>
<body>
{include file="../public/common" /}
<fieldset class="layui-elem-field site-demo-button" style="padding:10px;">
    <div class="layui-row">
        <!--  -->
        <form id="form1" class="layui-form layui-form-pane" action="{:url('')}">
            <section class="panel panel-padding">
                <div class="layui-form-item">
                    <label class="layui-form-label">标题名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="title" value="{$info.title|default=''}" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">关键字</label>
                    <div class="layui-input-block">
                        <input type="text" name="keywords" value="{$info.keywords|default=''}" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">描述</label>
                    <div class="layui-input-block">
                        <input type="text" name="description" value="{$info.description|default=''}" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">浏览量</label>
                    <div class="layui-input-inline">
                        <input type="text" name="view" value="{$info.view|default='0'}" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-inline">
                        <input type="radio" name="status" {eq name="info.status" value="1" }checked{/eq} title="正常" value="1" checked />
                        <input type="radio" name="status" {eq name="info.status" value="2" }checked{/eq} title="禁用" value="2" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">内容：</label>
                    <div class="layui-input-inline" style="width:80% !important;">
                        <textarea name="content" id="content">{$info.content|default=''}</textarea>
                    </div>
                </div>

                <div class="layui-input-block">
                    <input type="hidden" name="id" type="hidden" value="{$info.id|default=''}">
                    <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </section>
        </form>
        <!--  -->
    </div>
</fieldset>
</body>
{/block}
{block name="script"}
<script>
    layui.use(['jquery', 'form', 'laydate', 'upload', 'element'], function () {
        var $ = layui.jquery
            , laydate = layui.laydate
            , upload = layui.upload
            , element = layui.element
            , form = layui.form;

        form.render();
    });
</script>
<!-- ***************** -->
<script>
    ice.editor("content", function () {
        this.uploadUrl = "/upload/upFileAll";
    });
</script>
<!-- ***************** -->
{/block}